$OpenBSD: patch-select_core_c,v 1.1 2015/11/20 10:09:52 sthen Exp $
--- select_core.c.orig	Wed Oct 21 00:28:31 2015
+++ select_core.c	Wed Oct 21 00:29:26 2015
@@ -1512,7 +1512,11 @@ int select_sys_unique(str* res, select_t* s, struct si
 		for (i = UNIQUE_ID_FIX_LEN, cb = 0, x = 0; i < UNIQUE_ID_FIX_LEN+UNIQUE_ID_RAND_LEN; i++) {
 			if (!cb) {
 				cb = rb;
+#ifdef HAVE_ARC4RANDOM
+				x = arc4random();
+#else
 				x = rand();
+#endif
 			}
 			uniq_id[i] = fourbits2char[x & 0x0F];
 			x >>= rb;
